import dht
import machine
import time

d = dht.DHT11(machine.Pin(16))

while 1:
  d.measure()
  a=d.temperature() # eg. 23 (閹虹煰)
  b=d.humidity()    # eg. 41 (% RH)
  zidian={"WenDu":a,"ShiDu":b}
  print(zidian);
  time.sleep(1);

